{"ast":null,"code":"import _defineProperty from \"/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/@babel/runtime/helpers/esm/defineProperty.js\";\n/*\n.typography-title(@fontSize; @fontWeight; @lineHeight; @headingColor; @headingMarginBottom;) {\n  margin-bottom: @headingMarginBottom;\n  color: @headingColor;\n  font-weight: @fontWeight;\n  fontSize: @fontSize;\n  line-height: @lineHeight;\n}\n*/\nimport { gold } from '@ant-design/colors';\nimport { initInputToken } from '../../input/style';\nimport { operationUnit } from '../../style';\n// eslint-disable-next-line import/prefer-default-export\nvar getTitleStyle = function getTitleStyle(fontSize, lineHeight, color, token) {\n  var sizeMarginHeadingVerticalEnd = token.sizeMarginHeadingVerticalEnd,\n    fontWeightStrong = token.fontWeightStrong;\n  return {\n    marginBottom: sizeMarginHeadingVerticalEnd,\n    color: color,\n    fontWeight: fontWeightStrong,\n    fontSize: fontSize,\n    lineHeight: lineHeight\n  };\n};\n// eslint-disable-next-line import/prefer-default-export\nexport var getTitleStyles = function getTitleStyles(token) {\n  var headings = [1, 2, 3, 4, 5];\n  var styles = {};\n  headings.forEach(function (headingLevel) {\n    styles[\"\\n      h\".concat(headingLevel, \"&,\\n      div&-h\").concat(headingLevel, \",\\n      div&-h\").concat(headingLevel, \" > textarea,\\n      h\").concat(headingLevel, \"\\n    \")] = getTitleStyle(token[\"fontSizeHeading\".concat(headingLevel)], token[\"lineHeightHeading\".concat(headingLevel)], token.colorTextHeading, token);\n  });\n  return styles;\n};\nexport var getLinkStyles = function getLinkStyles(token) {\n  var componentCls = token.componentCls;\n  return {\n    'a&, a': Object.assign(Object.assign({}, operationUnit(token)), _defineProperty({\n      textDecoration: token.linkDecoration,\n      '&:active, &:hover': {\n        textDecoration: token.linkHoverDecoration\n      }\n    }, \"&[disabled], &\".concat(componentCls, \"-disabled\"), {\n      color: token.colorTextDisabled,\n      cursor: 'not-allowed',\n      '&:active, &:hover': {\n        color: token.colorTextDisabled\n      },\n      '&:active': {\n        pointerEvents: 'none'\n      }\n    }))\n  };\n};\nexport var getResetStyles = function getResetStyles() {\n  return {\n    code: {\n      margin: '0 0.2em',\n      paddingInline: '0.4em',\n      paddingBlock: '0.2em 0.1em',\n      fontSize: '85%',\n      background: 'rgba(150, 150, 150, 0.1)',\n      border: '1px solid rgba(100, 100, 100, 0.2)',\n      borderRadius: 3\n    },\n    kbd: {\n      margin: '0 0.2em',\n      paddingInline: '0.4em',\n      paddingBlock: '0.15em 0.1em',\n      fontSize: '90%',\n      background: 'rgba(150, 150, 150, 0.06)',\n      border: '1px solid rgba(100, 100, 100, 0.2)',\n      borderBottomWidth: 2,\n      borderRadius: 3\n    },\n    mark: {\n      padding: 0,\n      // FIXME hardcode in v4\n      backgroundColor: gold[2]\n    },\n    'u, ins': {\n      textDecoration: 'underline',\n      textDecorationSkipInk: 'auto'\n    },\n    's, del': {\n      textDecoration: 'line-through'\n    },\n    strong: {\n      fontWeight: 600\n    },\n    // list\n    'ul, ol': {\n      marginInline: 0,\n      marginBlock: '0 1em',\n      padding: 0,\n      li: {\n        marginInline: '20px 0',\n        marginBlock: 0,\n        paddingInline: '4px 0',\n        paddingBlock: 0\n      }\n    },\n    ul: {\n      listStyleType: 'circle',\n      ul: {\n        listStyleType: 'disc'\n      }\n    },\n    ol: {\n      listStyleType: 'decimal'\n    },\n    // pre & block\n    'pre, blockquote': {\n      margin: '1em 0'\n    },\n    pre: {\n      padding: '0.4em 0.6em',\n      whiteSpace: 'pre-wrap',\n      wordWrap: 'break-word',\n      background: 'rgba(150, 150, 150, 0.1)',\n      border: '1px solid rgba(100, 100, 100, 0.2)',\n      borderRadius: 3,\n      // Compatible for marked\n      code: {\n        display: 'inline',\n        margin: 0,\n        padding: 0,\n        fontSize: 'inherit',\n        fontFamily: 'inherit',\n        background: 'transparent',\n        border: 0\n      }\n    },\n    blockquote: {\n      paddingInline: '0.6em 0',\n      paddingBlock: 0,\n      borderInlineStart: '4px solid rgba(100, 100, 100, 0.2)',\n      opacity: 0.85\n    }\n  };\n};\nexport var getEditableStyles = function getEditableStyles(token) {\n  var _editContent;\n  var componentCls = token.componentCls;\n  var inputToken = initInputToken(token);\n  var inputShift = inputToken.inputPaddingVertical + 1;\n  return {\n    '&-edit-content': (_editContent = {\n      position: 'relative',\n      'div&': {\n        insetInlineStart: -token.paddingSM,\n        marginTop: -inputShift,\n        marginBottom: \"calc(1em - \".concat(inputShift, \"px)\")\n      }\n    }, _defineProperty(_editContent, \"\".concat(componentCls, \"-edit-content-confirm\"), {\n      position: 'absolute',\n      insetInlineEnd: token.marginXS + 2,\n      insetBlockEnd: token.marginXS,\n      color: token.colorTextDescription,\n      // default style\n      fontWeight: 'normal',\n      fontSize: token.fontSize,\n      fontStyle: 'normal',\n      pointerEvents: 'none'\n    }), _defineProperty(_editContent, \"textarea\", {\n      margin: '0!important',\n      // Fix Editable Textarea flash in Firefox\n      MozTransition: 'none',\n      height: '1em'\n    }), _editContent)\n  };\n};\nexport var getCopiableStyles = function getCopiableStyles(token) {\n  return {\n    '&-copy-success': _defineProperty({}, \"\\n    &,\\n    &:hover,\\n    &:focus\", {\n      color: token.colorSuccess\n    })\n  };\n};\nexport var getEllipsisStyles = function getEllipsisStyles() {\n  var _ref;\n  return _ref = {}, _defineProperty(_ref, \"\\n  a&-ellipsis,\\n  span&-ellipsis\\n  \", {\n    display: 'inline-block',\n    maxWidth: '100%'\n  }), _defineProperty(_ref, '&-single-line', {\n    whiteSpace: 'nowrap'\n  }), _defineProperty(_ref, '&-ellipsis-single-line', {\n    overflow: 'hidden',\n    textOverflow: 'ellipsis',\n    // https://blog.csdn.net/iefreer/article/details/50421025\n    'a&, span&': {\n      verticalAlign: 'bottom'\n    }\n  }), _defineProperty(_ref, '&-ellipsis-multiple-line', {\n    display: '-webkit-box',\n    overflow: 'hidden',\n    WebkitLineClamp: 3,\n    WebkitBoxOrient: 'vertical'\n  }), _ref;\n};","map":{"version":3,"names":["gold","initInputToken","operationUnit","getTitleStyle","fontSize","lineHeight","color","token","sizeMarginHeadingVerticalEnd","fontWeightStrong","marginBottom","fontWeight","getTitleStyles","headings","styles","forEach","headingLevel","colorTextHeading","getLinkStyles","componentCls","Object","assign","textDecoration","linkDecoration","linkHoverDecoration","colorTextDisabled","cursor","pointerEvents","getResetStyles","code","margin","paddingInline","paddingBlock","background","border","borderRadius","kbd","borderBottomWidth","mark","padding","backgroundColor","textDecorationSkipInk","strong","marginInline","marginBlock","li","ul","listStyleType","ol","pre","whiteSpace","wordWrap","display","fontFamily","blockquote","borderInlineStart","opacity","getEditableStyles","inputToken","inputShift","inputPaddingVertical","position","insetInlineStart","paddingSM","marginTop","insetInlineEnd","marginXS","insetBlockEnd","colorTextDescription","fontStyle","MozTransition","height","getCopiableStyles","colorSuccess","getEllipsisStyles","maxWidth","overflow","textOverflow","verticalAlign","WebkitLineClamp","WebkitBoxOrient"],"sources":["/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/antd/es/typography/style/mixins.js"],"sourcesContent":["/*\n.typography-title(@fontSize; @fontWeight; @lineHeight; @headingColor; @headingMarginBottom;) {\n  margin-bottom: @headingMarginBottom;\n  color: @headingColor;\n  font-weight: @fontWeight;\n  fontSize: @fontSize;\n  line-height: @lineHeight;\n}\n*/\nimport { gold } from '@ant-design/colors';\nimport { initInputToken } from '../../input/style';\nimport { operationUnit } from '../../style';\n// eslint-disable-next-line import/prefer-default-export\nconst getTitleStyle = (fontSize, lineHeight, color, token) => {\n  const {\n    sizeMarginHeadingVerticalEnd,\n    fontWeightStrong\n  } = token;\n  return {\n    marginBottom: sizeMarginHeadingVerticalEnd,\n    color,\n    fontWeight: fontWeightStrong,\n    fontSize,\n    lineHeight\n  };\n};\n// eslint-disable-next-line import/prefer-default-export\nexport const getTitleStyles = token => {\n  const headings = [1, 2, 3, 4, 5];\n  const styles = {};\n  headings.forEach(headingLevel => {\n    styles[`\n      h${headingLevel}&,\n      div&-h${headingLevel},\n      div&-h${headingLevel} > textarea,\n      h${headingLevel}\n    `] = getTitleStyle(token[`fontSizeHeading${headingLevel}`], token[`lineHeightHeading${headingLevel}`], token.colorTextHeading, token);\n  });\n  return styles;\n};\nexport const getLinkStyles = token => {\n  const {\n    componentCls\n  } = token;\n  return {\n    'a&, a': Object.assign(Object.assign({}, operationUnit(token)), {\n      textDecoration: token.linkDecoration,\n      '&:active, &:hover': {\n        textDecoration: token.linkHoverDecoration\n      },\n      [`&[disabled], &${componentCls}-disabled`]: {\n        color: token.colorTextDisabled,\n        cursor: 'not-allowed',\n        '&:active, &:hover': {\n          color: token.colorTextDisabled\n        },\n        '&:active': {\n          pointerEvents: 'none'\n        }\n      }\n    })\n  };\n};\nexport const getResetStyles = () => ({\n  code: {\n    margin: '0 0.2em',\n    paddingInline: '0.4em',\n    paddingBlock: '0.2em 0.1em',\n    fontSize: '85%',\n    background: 'rgba(150, 150, 150, 0.1)',\n    border: '1px solid rgba(100, 100, 100, 0.2)',\n    borderRadius: 3\n  },\n  kbd: {\n    margin: '0 0.2em',\n    paddingInline: '0.4em',\n    paddingBlock: '0.15em 0.1em',\n    fontSize: '90%',\n    background: 'rgba(150, 150, 150, 0.06)',\n    border: '1px solid rgba(100, 100, 100, 0.2)',\n    borderBottomWidth: 2,\n    borderRadius: 3\n  },\n  mark: {\n    padding: 0,\n    // FIXME hardcode in v4\n    backgroundColor: gold[2]\n  },\n  'u, ins': {\n    textDecoration: 'underline',\n    textDecorationSkipInk: 'auto'\n  },\n  's, del': {\n    textDecoration: 'line-through'\n  },\n  strong: {\n    fontWeight: 600\n  },\n  // list\n  'ul, ol': {\n    marginInline: 0,\n    marginBlock: '0 1em',\n    padding: 0,\n    li: {\n      marginInline: '20px 0',\n      marginBlock: 0,\n      paddingInline: '4px 0',\n      paddingBlock: 0\n    }\n  },\n  ul: {\n    listStyleType: 'circle',\n    ul: {\n      listStyleType: 'disc'\n    }\n  },\n  ol: {\n    listStyleType: 'decimal'\n  },\n  // pre & block\n  'pre, blockquote': {\n    margin: '1em 0'\n  },\n  pre: {\n    padding: '0.4em 0.6em',\n    whiteSpace: 'pre-wrap',\n    wordWrap: 'break-word',\n    background: 'rgba(150, 150, 150, 0.1)',\n    border: '1px solid rgba(100, 100, 100, 0.2)',\n    borderRadius: 3,\n    // Compatible for marked\n    code: {\n      display: 'inline',\n      margin: 0,\n      padding: 0,\n      fontSize: 'inherit',\n      fontFamily: 'inherit',\n      background: 'transparent',\n      border: 0\n    }\n  },\n  blockquote: {\n    paddingInline: '0.6em 0',\n    paddingBlock: 0,\n    borderInlineStart: '4px solid rgba(100, 100, 100, 0.2)',\n    opacity: 0.85\n  }\n});\nexport const getEditableStyles = token => {\n  const {\n    componentCls\n  } = token;\n  const inputToken = initInputToken(token);\n  const inputShift = inputToken.inputPaddingVertical + 1;\n  return {\n    '&-edit-content': {\n      position: 'relative',\n      'div&': {\n        insetInlineStart: -token.paddingSM,\n        marginTop: -inputShift,\n        marginBottom: `calc(1em - ${inputShift}px)`\n      },\n      [`${componentCls}-edit-content-confirm`]: {\n        position: 'absolute',\n        insetInlineEnd: token.marginXS + 2,\n        insetBlockEnd: token.marginXS,\n        color: token.colorTextDescription,\n        // default style\n        fontWeight: 'normal',\n        fontSize: token.fontSize,\n        fontStyle: 'normal',\n        pointerEvents: 'none'\n      },\n      textarea: {\n        margin: '0!important',\n        // Fix Editable Textarea flash in Firefox\n        MozTransition: 'none',\n        height: '1em'\n      }\n    }\n  };\n};\nexport const getCopiableStyles = token => ({\n  '&-copy-success': {\n    [`\n    &,\n    &:hover,\n    &:focus`]: {\n      color: token.colorSuccess\n    }\n  }\n});\nexport const getEllipsisStyles = () => ({\n  [`\n  a&-ellipsis,\n  span&-ellipsis\n  `]: {\n    display: 'inline-block',\n    maxWidth: '100%'\n  },\n  '&-single-line': {\n    whiteSpace: 'nowrap'\n  },\n  '&-ellipsis-single-line': {\n    overflow: 'hidden',\n    textOverflow: 'ellipsis',\n    // https://blog.csdn.net/iefreer/article/details/50421025\n    'a&, span&': {\n      verticalAlign: 'bottom'\n    }\n  },\n  '&-ellipsis-multiple-line': {\n    display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